//-----------------------------------------------------------------------
// <copyright file=" SsoAuthtication.cs">
// * version : 1.0
// * FileName: SsoAuthtication.cs
// * history : Created by T4 04/05/2017 17:56:54 
// </copyright>
//-----------------------------------------------------------------------
using NFine.Code;
using NFine.Domain.Entity.SSO;
using NFine.Domain.IRepository.SSO;
using NFine.Repository.SSO;
using System.Collections.Generic;
using System.Linq;
namespace NFine.Application.SSO
{
    public class SsoAuthticationApp
    {
        private ISsoAuthticationRepository service = new SsoAuthticationRepository();
        
        public List<SsoAuthticationEntity> GetList()
        {
            return GetList("select * from Sso_Authtication");
        }

        public List<SsoAuthticationEntity> GetList(string strSql)
        {
            return service.FindList(strSql);
        }

        public List<SsoAuthticationEntity> GetList(Pagination pagination, string queryJson)
        {
            return service.FindList(pagination);
        }

        public SsoAuthticationEntity GetForm(int keyValue)
        {
            return service.FindEntity(keyValue);
        }

        public void Delete(SsoAuthticationEntity entity)
        {
            service.Delete(entity);
        }

        public void SubmitForm(SsoAuthticationEntity entity, int keyValue)
        {
            //if (keyValue > 0)
            //{
            //    entity.Modify(keyValue);
            //    service.Update(entity);
            //}
            //else
            //{
            //    entity.Create();
            //    service.Insert(entity);
            //}
        }
    }
}